package ooday01;
//汽车测试
public class CarTest {
    public static void main(String[] args) {
        //无参：
        Car ca1 = new Car();
        ca1.brand = "小米su7";
        ca1.price = 299000;
        ca1.color = "霞光紫Max";
        ca1.start();
        ca1.run();
        ca1.stop();


        System.out.println("----------------");
        //有参：
        Car ca = new Car("小米su7","海湾蓝Max",299000);
        ca.start();
        ca.run();
        ca.stop();
    }
}
